package com.sq.partner.manager.dao.impl;

/**
 * tbr-bbr-syr-info
 * @author zzGuo
 *
 */

import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Repository;

import com.sq.partner.manager.dao.IGatewayCustomerDao;
import com.sq.partner.manager.mybatis.model.GatewayCustomer;
import com.sq.partner.manager.mybatis.model.ScanCustomer;
import com.sq.partner.manager.util.LogUtil;

@Repository
public class GatewayCustomerDaoImpl extends BaseDaoImpl implements IGatewayCustomerDao {
	
	private static Logger logger = LogUtil.getLog(GatewayCustomerDaoImpl.class);

	@Override
	public GatewayCustomer queryTBRInfoByTbrId(String polNo) throws Exception {
		return (GatewayCustomer)this.query("queryGatewayCustomerById", polNo);
	}

	@Override
	public GatewayCustomer queryBBRInfoForSingelByPolicyId(String polNo) throws Exception {
		return (GatewayCustomer)this.query("queryGatewayCustomerByPolicyId", polNo);
	}

	@Override
	public List<Map<String,Object>> queryBBRInfoForTeamByPolNo(String polNo) throws Exception {
		logger.debug("++++++++++++++++++++++teamPolicy_PolNo"+polNo);
		return (List<Map<String,Object>>)this.queryList("queryGatewayCustomerByPolNo", polNo);
	}

	@Override
	public List<GatewayCustomer> querySYRInfoByBBRCustomerId(String polNo) throws Exception {
		logger.debug("++++++++++++++++++++++bbr_CustomerId"+polNo);
		return this.queryList("querySYRCustomerInfoByPolicyId", polNo);
	}

	@Override
	public ScanCustomer queryScanTBRInfoByAppNo(String appNo) throws Exception {
		return (ScanCustomer)this.query("queryScanApplicantByAppNo", appNo);
	}

	@Override
	public ScanCustomer queryScanBBRInfoByAppNo(String appNo) throws Exception {
		return (ScanCustomer)this.query("queryScanInsuredByAppNo", appNo);
	}

	@Override
	public ScanCustomer queryScanSYRInfoByAppNo(String appNo) throws Exception {
		return (ScanCustomer)this.query("queryScanSyrByAppNo", appNo);
	}

}
	 

	 

	 

 
